package com.tdkj.model.risevalue;

import java.sql.Timestamp;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;
import com.tdkj.model.user.BeanUser;

/**
 * XnkyTicketcolor entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "risevalue_float_color_buy")
public class BeanFloatColorBuy extends BaseEntity implements java.io.Serializable {

	private Integer color;
	private BeanFloatColorCustom custom;
	private BeanUser user ;
	private Timestamp buyTime ;
	
	private BeanFloatColorUseInfo useInfo;

	public Integer getColor() {
		return color;
	}
	public void setColor(Integer color) {
		this.color = color;
	}
	@ManyToOne(fetch=FetchType.EAGER, cascade={CascadeType.REFRESH})
	@JoinColumn(name="custom_id")
	public BeanFloatColorCustom getCustom() {
		return custom;
	}
	public void setCustom(BeanFloatColorCustom custom) {
		this.custom = custom;
	}
	@ManyToOne(fetch=FetchType.EAGER, cascade={CascadeType.REFRESH})
	@JoinColumn(name="user_id")
	public BeanUser getUser() {
		return user;
	}
	public void setUser(BeanUser user) {
		this.user = user;
	}
	public Timestamp getBuyTime() {
		return buyTime;
	}
	public void setBuyTime(Timestamp buyTime) {
		this.buyTime = buyTime;
	}
	@ManyToOne(fetch=FetchType.EAGER, cascade={CascadeType.REFRESH})
	@JoinColumn(name="use_info_id")
	public BeanFloatColorUseInfo getUseInfo() {
		return useInfo;
	}
	public void setUseInfo(BeanFloatColorUseInfo useInfo) {
		this.useInfo = useInfo;
	}
	

}